import logo from '../../assets/logo.svg'
import './home.css'


const Home = (state, prop) => {
    const [a, setA] = useState(0)
    return (
        <div className="App">
          <header className="App-header">
            <img src={logo} className="App-logo" alt="logo" />
            <div>{a}</div>
            <button onClick={()=>{setA(a+1)}}>追加</button>
            <p>
              Edit <code>src/App.js</code> and save to reload.
            </p>
            <a
              className="App-link"
              href="https://reactjs.org"
              target="_blank"
              rel="noopener noreferrer"
            >
              Learn React
            </a>
          </header>
        </div>
    );
}

export default Home;